package com.md.mymusic.impl

import android.content.Context
import com.alibaba.android.arouter.facade.annotation.Route
import com.md.album.event.SelfRefreshEvent
import com.md.basedpc.routerservice.NotifyService
import org.greenrobot.eventbus.EventBus

const val SELF_CREATE_ALBUM= 0x1
const val SAVED_ALBUM=0x2

@Route(path = "/mymusic/notifysuc")
class NotifyServiceImpl:NotifyService {


    override fun selfAlbumUpdateSuc(num:Int) {
        EventBus.getDefault().post(NotifyServiceModel(num))
        EventBus.getDefault().post(SelfRefreshEvent())
    }

    override fun init(context: Context?) {
    }
    /**
     * @param type : 1 展示自建专辑 ；2展示收藏的专辑
     * */
    data class NotifyServiceModel(var type:Int)
}